/*
 * @FilePath: /flutter_cart/lib/model/category.dart
 * @Author: Yongchao Wang
 * @Date: 2020-12-02 22:23:32
 * @LastEditors: Yongchao Wang
 * @LastEditTime: 2020-12-02 22:36:42
 */
class CategoryBigModel {
  String mallCategoryId; //类别编号
  String mallCategroyName;
  List<dynamic> bxMallSubDto;
  Null comments;
  String image;
  CategoryBigModel({
    this.mallCategoryId,
    this.mallCategroyName,
    this.bxMallSubDto,
    this.comments,
    this.image,
  });
  factory CategoryBigModel.fromJson(dynamic json) {
    return CategoryBigModel(
      mallCategoryId: json['mallCategoryId'],
      mallCategroyName: json['mallCategoryName'],
      bxMallSubDto: json['bxMallSubDto'],
      comments: json['comments'],
      image: json['image'],
    );
  }
}

class CategoryBigListModel {
  List<CategoryBigModel> data;

  CategoryBigListModel(this.data);
  factory CategoryBigListModel.fromJson(List json) {
    return CategoryBigListModel(
        json.map((i) => CategoryBigModel.fromJson((i))).toList());
  }
}
